const getters = {
    // addRouters: state => state.permission.addRouters,
    routers: state => state.permission.routers,

    userName: state => state.user.name,
    userAvatar: state => state.user.avatar,
    token: state => state.user.token,

    currentUser: state => {
        return {
            avatar: state.user.avatar,
            name: state.user.name
        }
    },

    apps: state => state.app.apps,
    currentApp: state => state.app.currentApp
}

export default getters